package net.lzzy.practices.web;

import net.lzzy.practices.web.handler.BusinessException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import springfox.documentation.annotations.ApiIgnore;

/****
 * @author zly on 2022/5/5
 * Description:
 */
@ApiIgnore
@Controller
public class IndexController {
    @GetMapping("/")
    public String index(){
        if (true){
            throw new BusinessException("测试业务异常");
        }
        return  "index";
    }
}